package com.kukudexin.lockThread;

/**
 * @author: 酷酷的鑫
 * @description:
 */
public class DaemonThread {
    public static void main(String[] args) {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                while (true){}
            }
        },"我是子线程");
        thread.setDaemon(true);
        thread.start();
        System.out.println("我的主线程代码执行完毕..");
    }
}
